package org.mx.spring.config;

import java.util.List;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import lombok.Getter;
import lombok.Setter;

@SuppressWarnings("javadoc")
@Configuration
@ConfigurationProperties("redis")
@Getter
@Setter
public class RedisConfig {
	private boolean enable;
	private String user, password;
	private List<String> database;
	private List<RedisHost> hosts;
	
	@Getter
	@Setter
	public static class RedisHost {
		private String host;
		private int port;
	}
}
